<?php

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'name'  =>  'require|min:5|max:18',
        'password' =>  'require|min:5|max:18',
        'role' => 'require|number|min:1|max:1'
    ];
}